<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The CairoMatrix class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.cairolinejoin.html">CairoLineJoin</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="cairomatrix.construct.html">CairoMatrix::__construct</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.cairomatrix" class="reference">

 <h1 class="title">The CairoMatrix class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL cairo &gt;= 0.1.0)</p>


  <div class="section" id="cairomatrix.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    Matrices are used throughout cairo to convert between different coordinate spaces.
   </p>
  </div>


  <div class="section" id="cairomatrix.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">CairoMatrix</strong>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="cairomatrix.construct.html" class="methodname">__construct</a></span>
    ([ <span class="methodparam"><span class="type">float</span> <code class="parameter">$xx</code><span class="initializer"> = 1.0</span></span>
   [, <span class="methodparam"><span class="type">float</span> <code class="parameter">$yx</code><span class="initializer"> = 0.0</span></span>
   [, <span class="methodparam"><span class="type">float</span> <code class="parameter">$xy</code><span class="initializer"> = 0.0</span></span>
   [, <span class="methodparam"><span class="type">float</span> <code class="parameter">$yy</code><span class="initializer"> = 1.0</span></span>
   [, <span class="methodparam"><span class="type">float</span> <code class="parameter">$x0</code><span class="initializer"> = 0.0</span></span>
   [, <span class="methodparam"><span class="type">float</span> <code class="parameter">$y0</code><span class="initializer"> = 0.0</span></span>
  ]]]]]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">void</span><span class="methodname"><a href="cairomatrix.initidentity.html" class="methodname">initIdentity</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">void</span><span class="methodname"><a href="cairomatrix.initrotate.html" class="methodname">initRotate</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$radians</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">void</span><span class="methodname"><a href="cairomatrix.initscale.html" class="methodname">initScale</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$sx</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$sy</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">void</span><span class="methodname"><a href="cairomatrix.inittranslate.html" class="methodname">initTranslate</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$tx</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$ty</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="cairomatrix.invert.html" class="methodname">invert</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">CairoMatrix</span><span class="methodname"><a href="cairomatrix.multiply.html" class="methodname">multiply</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.cairomatrix.html" class="type CairoMatrix">CairoMatrix</a></span> <code class="parameter">$matrix1</code></span>
   , <span class="methodparam"><span class="type"><a href="class.cairomatrix.html" class="type CairoMatrix">CairoMatrix</a></span> <code class="parameter">$matrix2</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="cairomatrix.rotate.html" class="methodname">rotate</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$sx</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$sy</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="cairomatrix.scale.html" class="methodname">scale</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$sx</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$sy</code></span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span><span class="methodname"><a href="cairomatrix.transformdistance.html" class="methodname">transformDistance</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$dx</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$dy</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span><span class="methodname"><a href="cairomatrix.transformpoint.html" class="methodname">transformPoint</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$dx</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$dy</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="cairomatrix.translate.html" class="methodname">translate</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$tx</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$ty</code></span>
    )</div>

   }</div>


  </div>

 </div>

 





















































































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="cairomatrix.construct.html">CairoMatrix::__construct</a> — Creates a new CairoMatrix object</li><li><a href="cairomatrix.initidentity.html">CairoMatrix::initIdentity</a> — Creates a new identity matrix</li><li><a href="cairomatrix.initrotate.html">CairoMatrix::initRotate</a> — Creates a new rotated matrix</li><li><a href="cairomatrix.initscale.html">CairoMatrix::initScale</a> — Creates a new scaling matrix</li><li><a href="cairomatrix.inittranslate.html">CairoMatrix::initTranslate</a> — Creates a new translation matrix</li><li><a href="cairomatrix.invert.html">CairoMatrix::invert</a> — The invert purpose</li><li><a href="cairomatrix.multiply.html">CairoMatrix::multiply</a> — The multiply purpose</li><li><a href="cairomatrix.rotate.html">CairoMatrix::rotate</a> — The rotate purpose</li><li><a href="cairomatrix.scale.html">CairoMatrix::scale</a> — Applies scaling to a matrix</li><li><a href="cairomatrix.transformdistance.html">CairoMatrix::transformDistance</a> — The transformDistance purpose</li><li><a href="cairomatrix.transformpoint.html">CairoMatrix::transformPoint</a> — The transformPoint purpose</li><li><a href="cairomatrix.translate.html">CairoMatrix::translate</a> — The translate purpose</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.cairolinejoin.html">CairoLineJoin</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="cairomatrix.construct.html">CairoMatrix::__construct</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
